<?php
/**
* Api_View_Helper_BaseUrl class for Boomerang Referral Network
*
* Api_View_Helper_BaseUrl is the view helper class which is used to get the
* base path at view page or layout page
* 
* @package      Api_View_Helper
* @copyright    Copyright (c) 2011-2012 Boomerang Referral Network
* @version      $Id: BaseUrl.php v 1.0.0$
* @since        Class available since Release 1.0.0
* @author       Anindya Roy Chodhury <anindya23@gmail.com>
*/
class Api_View_Helper_BaseUrl extends Zend_View_Helper_Abstract
{
    /**
     * Return project's base path to the view page
     * 
     * @return string
     */
    function baseUrl()
    {
        $frontController = Zend_Controller_Front::getInstance();
        return $frontController->getBaseUrl();
    }
}